/**
 * Created by radish608 on 17-5-3.
 */
import java.util.Stack;
public class calc {
    public static void main(String[] args) {
        int[] arr = new int[2];
        char op;
        int result = 0;
        if(3 == args.length){
            arr[0] = Integer.parseInt(args[0]);
            arr[1] = Integer.parseInt(args[2]);
            op = args[1].charAt(0);
            switch(op) {
                case '+':
                    result = arr[0] + arr[1];
                    break;
                case '-':
                    result = arr[0] - arr[1];
                    break;
                case '*':
                    result = arr[0] * arr[1];
                    break;
                case '/':
                    result = arr[0] / arr[1];
                    break;
                case '%':
                    result = arr[0] % arr[1];
                    break;
                default:
                    System.out.println("error!");
            }
            System.out.println(args[0] + " " + args[1] + " " + args[2] + " = " + result );
        }
    }
}
